<template>
  <div id="main">
    <top></top>
    <xinxi></xinxi>
    <game></game>
    <yingxiong></yingxiong>
    <share></share>
    <div class="blank-100"></div>
    <foot></foot>
    <gonggao-cont></gonggao-cont>
    <jinbi-cont></jinbi-cont>
    <guize-cont></guize-cont>
  </div>
</template>

<script>
  /**
   * 首页
   * /index
   */
  import Top from 'components/top/Top'
  import Xinxi from 'components/xinxi/Xinxi'
  import Game from 'components/game/Game'
  import Yingxiong from 'components/yingxiong/Yingxiong'
  import Share from 'components/share/Share'
  import Foot from 'components/foot/Foot'
  import GonggaoCont from 'components/pop/GonggaoCont'
  import JinbiCont from 'components/pop/JinbiCont'
  import GuizeCont from 'components/pop/GuizeCont'
  import { getUrlParam } from 'common/common.util'
  import sessionDAO from 'common/sessionDAO'

  export default {
    name: 'index',
    components: {
      Top,
      Xinxi,
      Game,
      Yingxiong,
      Share,
      Foot,
      GonggaoCont,
      JinbiCont,
      GuizeCont
    },
    mounted () {
      var tgCode = this.$route.query.tgCode || getUrlParam('tgCode')
      sessionDAO.setTGCode(tgCode)
    }
  }
</script>
